package com.ozo.cloud.gen.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 项目配置保存对象
 * </p>
 *
 * @author qiangesoft
 * @date 2024-11-13
 */
@Schema(description = "项目配置保存对象")
@Data
public class GenProjectSaveDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @NotBlank(message = "项目名不能为空")
    @Schema(description = "项目名")
    private String projectName;

    @NotBlank(message = "项目编码不能为空")
    @Schema(description = "项目编码")
    private String projectCode;

    @NotBlank(message = "项目版本号不能为空")
    @Schema(description = "项目版本号")
    private String projectVersion;

    @NotBlank(message = "项目包路径不能为空")
    @Schema(description = "项目包路径")
    private String projectPackage;

    @NotBlank(message = "项目作者不能为空")
    @Schema(description = "项目作者")
    private String projectAuthor;

    @NotBlank(message = "项目作者邮箱不能为空")
    @Schema(description = "项目作者邮箱")
    private String projectAuthorEmail;

    @NotBlank(message = "后端代码路径不能为空")
    @Schema(description = "后端代码路径")
    private String projectBackendPath;

    @NotBlank(message = "前端代码路径不能为空")
    @Schema(description = "前端代码路径")
    private String projectFrontPath;

}
